//void, Obj This

Unit this;
Sleep(1000+rand(GetConst("RandTimeStart"))+GetConst("AddTimeStart"));

this = This.AsUnit;

while(!.IsValid) Sleep(10000); 
while(.IsAlive) {
	if(.InHolder){
		Sleep(10000);
		continue;
	}
	if(.IsSentry) Sleep(7000);
	else Sleep(4000);
	
	RevealHiddenEnemyUnits(.pos, .sight, .player);
}

//prevent behavior script from terminating (this will lockup the game)
while(true) Sleep(50000);
